<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>优惠促销管理</h3>
      <ul class="tab-base">
        <li><a href="index.php?act=discount_promotion&op=index" ><span>优惠促销列表</span></a></li>
        <li><a href="javascript:;" class="current"><span>添加优惠促销</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="add_form" enctype="multipart/form-data" method="post"  action="index.php?act=discount_promotion&op=dis_promotion_add">
   
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">促销优惠内容：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="pro_content" id="pro_content" class="txt"></td>
          
        </tr>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">促销优惠类型：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="pro_type" id="pro_type" class="txt"></td>
          <td class="vatop tips">优惠促销类型（1拼团列表页，2转盘，3普通商品详情页，4拼团商品详情页，5活动模板）</td>
        </tr>
        
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">主要id：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="pro_major_id" id="pro_type_remark" class="txt"></td>
          <td class="vatop tips">（如果是商品，则输入商品id，拼团商品则输入拼团id，活动模板则输入模板id,其他的不需填写）</td>
        </tr>
        
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">名称：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="pro_title" id="pro_title" class="txt"></td>
          <td class="vatop tips">（若是活动模板，则输入活动名称，如“母亲节”等）</td>
        </tr>
        
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">是否发布：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">
                                      是<input type="radio" name="is_release" id="is_release" value="1">
                                      否<input type="radio" name="is_release" id="is_release" value="0">
          </td>
          <td class="vatop tips">是否发布，1是，0否</td>
        </tr>
        
        <tr>
          <td colspan="2" class="required"><label >上传图片:</label></td>
        </tr>
        
        <tr class="noborder">
          <td class="vatop rowform"> <span class="type-file-box"  style="height: auto;">
         
            <!-- <input type="hidden" name='pic_check' value="0" /> -->
            <input type="file" name='pro_image' size="30" >
            <!-- <input type="file" class="type-file-file" name='gs_tp_image' size="30" /> -->
           </span> </td>
          <!-- <td class="vatop tips">列表商品不需要上传模板图片</td> -->
        </tr>
        
      </tbody>
      <tfoot>
        <tr>
          <td colspan="2"><a id="submit" href="javascript:void(0)" class="btn"><span><?php echo $lang['nc_submit'];?></span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript">


$(document).ready(function(){
    $('#submit').click(function(){
		/* var gt_class_name=$("#gt_class_name").val();
		var gt_class_num=$("#gt_class_num").val();
		if(gt_class_name=="" || gt_class_num==""){
			alert("参数不足");
			return false;
		} */
        
        $('#add_form').submit();
    });
});

</script>
